<template>
  <div class="container">
    <div class="info-box">
      <van-image
        width="80px"
        height="80px"
        fit="cover"
        src="https://img01.yzcdn.cn/vant/cat.jpeg"
        round
      />
      <h2 class="name">
        黑马XXX
        <br />
        <van-tag color="#fff" text-color="skyblue">2021-7-13</van-tag>
      </h2>
    </div>
    <!-- 操作导航 -->
    <van-row class="user-nav">
      <van-col span="8">
        <van-icon name="coupon-o" color="#1989fa" />
        我的作品
      </van-col>
      <van-col span="8">
        <van-icon name="like-o" color="red" />
        我的收藏
      </van-col>
      <van-col span="8">
        <van-icon name="todo-list-o" color="orange" />
        阅读历史
      </van-col>
    </van-row>
    <!-- 编辑cell -->
    <!-- 编辑cell -->
    <van-cell-group class="user-group">
      <van-cell icon="edit" to="/means" title="编辑资料" is-link />
      <van-cell icon="chat-o" to="/robot" title="小智同学" is-link />
      <van-cell icon="setting-o" title="系统设置" is-link />
      <van-cell icon="warning-o" title="退出登录" is-link />
    </van-cell-group>
  </div>
</template>

<script>
export default {
  name: "user",
};
</script>

<style lang="less">
.container {
  .info-box {
    height: 100px;
    background-color: skyblue;
    display: flex;
    align-items: center;
    padding-left: 20px;

    .name {
      font-size: 18px;
      margin-left: 15px;
      color: white;
      font-weight: normal;
    }
  }
  .user-nav {
    font-size: 18px;
    text-align: center;
    padding: 20px 0 30px;
    .van-icon {
      display: block;
      font-size: 30px;
      padding-bottom: 15px;
    }
  }
}
</style>